(bug) Fix whitespace checking.
(bug) Add % to purged hash chars to prevent accidental decoding.