Remove trailing spaces
Fix VERSION handling, this is good for ruby 2.0+
Change encoding variable from String to constants
Ignore *.gem