Fix encoding issues for anyone using a somewhat modern Ruby (1.9 or greater)