Change error string to catch encoding problems using repr()