Look for allowed instead of forbidden characters in dataset ID check
write_dataset
currently checks dataset ID to catch some common mistakes but since we know that these need to be valid URL path components, a better solution would be to create a regular expression based on the URL specification available at https://url.spec.whatwg.org/ and verify that only allowed characeters are used.