Debugging funky character value errors