I had to dig in the mask.js file to find the attribute allowInvalidValue.
I am using it now. But I spent a few hours trying to save invalid values through some tmp var. That wasn't working since the value would get cleared by ui-mask. It would be good if allowInvalidValue was in the docs.