(#20897) Added lines to handle UTF_8 systems at startup

I had weird error messages since upgrade of puppetmaster to 3.2.1, so I finally manage to make it work again as intended by specifying UTF8 content explicitly to ruby on startup.

Sory