Removing characters that cause parsing issues