Sanitise device namespace and file names