Removed need to escape /r and what not, credit to whyrusleeping