add map example to toUpper

Give a not-so-obvious example of how to use toUpper to create a non-allocating algorithm.
The example streams to a buffer because that is the most likely use case, and it is not immediately obvious how to do this with ranges. Also, it is offered as an alternative to toupper(string), which does return a string.