pub fn with_extension(input: &str, extension: &str) -> String
Replaces the last simple extension or appends one when missing.