fix handling broken unicode character hang

fix from pagespeed change https://code.google.com/p/modpagespeed/source/detail?r=4389