Make String::wrap() unicode aware. Solves #3981.