in reply to Binary File Upload

the regex looks wrong...as special characters lose their specialness whenever in a character class
and altogether i'm not sure the regex is doing what you intended.
the hardest line to type correctly is: stty erase ^H