lib/standard/string: Adapted substring for UTF-8 Strings.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>