[SERVINF-168] Fix ruby 1.9 encoding issue.

Turns out it was the database connection that was breaking all this, even though
the effect was only seen when loading data directly out of a file.