This escaping should be more generic, it should catch and replace any regex significant character.