escape UTF8 (patch from caoliver)