Fix for encoding issues with non-ASCII sites.