todo: convert to valid utf-8