fix handling of invalid volume names (bb#738)