Avoid unsafe code in to_ascii_[lower/upper]case()
#106922
Merged
to_ascii_[lower/upper]case()
#106922