How to remove non-ASCII chars, with example of Azure Blob metadata

I recently had a use case to add metadata to an Azure Blob. The metadata value only supports ASCII, so I need to ensure my tokenized content is compatible. Alas, no simple way to convert non-ascii characters (e.g. no regex replace).