Removing unicode handling, switching to latin1 encoding.
Regexes are raw strings, shortening line lengths.