fixing bug when useragent comes as ISO-8859-1 and with accents