Fix encoding of names.