On charm production near the phase boundary