MEX: bugfix for converting empty strings

The conversion methods for strings now accept empty strings.