Handle 'space' character correctly in WinAnsiEncoding (bug 850854)

(Basically identical to PR #4569, but for WinAnsiEncoding.)

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=850854.