Normalize backslashes when escaping attributes