fix logging to handle unicode in url properly