fixed Unicode/UTF-8 handling in tests