Properly escape special characters.