keep htmlEncode and htmlDecode from converting blank strings into empty strings (e.g., '  ' to '')