Remove superfluous requirement for rubygems
Add encoding information to spec

This prevents the test from failing in some enviroments
Avoid modification of $
Revert "Add encoding information to spec"

This reverts commit 88590879ece19bc55c0788c4f21a8d3ef55d8893.