Refactored away preg_replace
Breakup into transformation and translation phase
Move utf-8 function to constants
Move stuff out of transformation phase
Simpletest implementation