Retrict set/getUserAgent(String)

Refs #825