add function to escape special character.