fixing encoding issues for pages