Quote user_agent in logs