title: Ruby 1.8.7 convert hash to string
body: <p>I wasn't working with ruby 1.8.7 and recently I was surprised that:</p>
  
  <pre><code>{:k =&gt; 30}.to_s #=&gt; "k30"
  </code></pre>
  
  <p>Is there ready to use fix to convert hash to string for ruby 1.8.7 to make it look like:</p>
  
  <pre><code>{:k =&gt; 30}.to_s #=&gt; "{:k=&gt;30}"
  </code></pre>