Working double to string encoding

- Implementation based on Ruby 1.8.5’s `strtod`
  (cf. http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_5/missing/strtod.c)