fix name encoding