fix jsapi test
replace nonascii characters with conversion from their UTF code, so the test passes on systems with different default encoding than UTF-8 (eg. windows with cp1250)