Fixed JS string encoding.