Fix serialization of client environment.
Merge pull request #110 from oggy/fix-rails-env

Fix serialization of client environment.