try fixing encoding issues when non US-ASCII characters present