charset fix
bezier fitting