Escape special characters in string literal