Remove UTF-8 BOMs and clean up whitespace

The BOMs (Byte Order Marks) at the beginning of Ruby files caused Puppet
3.4 to error out.