[mysql] do not screw up when there are question marks in the data