cleanup: string encoding