Revert "Remove setting of internal and external encodings for ruby 1.9 - as per 512d8e3d1845e327740acc2f7326e72b23d0d604, this is already the default in Rails 3." <- Although this is the default in Rails, Rails isn't loaded at this point in the script.

This reverts commit 6124624f4035e74eb79f1e93f26d5584ed3e2fa1.