Encode the user agent

shape_ua(ua)