The API docs say `mname` is a string, not an array. Are you sure this is the correct fix? It seems more likely that something upstream of this method is passing a non-string when it should be passing a string.