Can you explain the need to convert to unicode and then encode back to utf8?  If usage_id is a bytestring, this is unnecessary.