Replace invalid characters in the input that can be caused by KVO exceptions.
Merge pull request #11 from dcutting/master

Replace invalid characters in the input that cause the script to fail