Avoiding UTF-8 failures