Pre-compiling regex that removes control characters.

Given that this regex might be used a lot in the lifetime of a given server (each request that uses get_argument for unicode strings) it seems sensible to store the compiled version of the regex.
Handle non-ascii data in logged exceptions like in the main message.

Closes #675
Merge commit 'e3f8aa' from heynemann/master

Closes #677