it's very probably your web browser that removes the extra spaces. They tend to do that (I think it's actually some soft of standard).
This has been discussed several times before. There are some ways around the limitation, most of which are not pretty. There have also been suggestions to use things like binary variables (allow echoing of binary variables and pass binary variables to scripts).
I suggest you look around for other threads on the subject.