Added error checking for stupid microsoft characters