MEX: bugfix for converting empty strings