keep htmlEncode and htmlDecode from converting blank strings into empty strings (e.g., '  ' to '')
Merge pull request #2 from rodw/master

Prevent htmlEncode() and htmlDecode() from converting blank strings into empty strings