Fix for floating point numbers

Casting data to ascii wreaks havoc later on when converting to binary.
I propose to keep it as Buffer for as long as possible.

I have written up a small pastebin explaining the problem:
http://pastebin.com/cTa1xgQQ