fix encoding of contact