Fixes non-ascii encoding test.