Don't allow invalid document URIs.