Avoiding character encoding issues