fix string encoding

On 1.9.3-p0 I had some troubles with utf-8 support my rails 3.2.1 project wouldn't work without that fix