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

This is similar to the change for Unity (https://github.com/ThrowTheSwitch/Unity/pull/57) to fix encoding. It should make some people very happy (mostly those who use unusual characters from time to time in their source code)