I would prefer if the rest of this function was extracted to a separate function - `utf8Decode` or something.