Open nonblock so it won't hang if other end is absent
Minor adjustment so Valgrind is happy with string handling in user_agent_filter