some string encoding tests