Use yajl-ruby for json encoding

Implemented recommendation based on TODO found in the original source.