fixes issue with user agent return as unicode

Creating the identifier use the remote address and the user agent. The last one is now return as a unicode. This fix changne the computational of the identifier to use a proper unicode, if available.