Sensible hash string conversions

I had the need to convert certain fields into strings, and most of the cases were handled except for a hash. This should allow for conversion of hashes into JSON strings.

I'm by no means a ruby guy (primarily PHP), but I figured this would do the trick...