Fixed handling user-agent with backslash escaping