sh: Add UTF-8 support to ${#var}.