Often I find my self doing this
C-x C-f to create a file, while in the mini buffer prompt,
paste a url like "https://github.com/seamusabshere/cache_method/issues/15" from the clipboard.
Since "https://github.com/seamusabshere/cache_method/issues/15" is not a "safe" file name, I end up manually fixing it to look like
Can a pre-existing emacs function help me with this? I feel like converting a string to a filepath safe string is a common scenario in emacsland.
What I tried: Looked in M-x list for words like "normalize" "sanitize"
Another scenario: I'm in M-x shell, I have typed git checkout -b and have a jira ticket url in the clipboard. I want to create branch named after the jira ticket url.