Fixing conversions of strings with 1's in them

This branch was created in order to fix https://github.com/rejeep/ruby-tools/issues/4. Currently, the fix is not there yet. @sergeypererva helps me to find a way to solve this problem (we're both noobs in Emacs Lisp :P).