Fix a couple of test issues.

encoding issue when LANG etc. env vars aren't set.

Also delete Gemfile.lock before running tests to ensure we're testing against the gemspec dependencies