This strikes me as a something a bit weird. So if a string is already unicode, we encode it again, otherwise we do not do anything. Is that really what you wanted to do?