J.W. fixed parse-non-special-char and parse-plain-char, so that it will not crash when an empty string is given, also added test cases for these two functions.