I see what you mean, but suppose `%x` is supported in the future, it might be a good idea to have two functions being maintained at the same time.

For now I think it's reasonable to merge them and leave some comments right before the function, something like:
`sanitize all occurrences of '%' except for the first valid format specifier; return true if there is a valid one found`

what do you think?