Fixes #8536 - can update and delete media with dot in name