Return how many bytes are needed to serialize a UTF-8 string. Copyright (c) 2018 Rafael da Silva Rocha. https://github.com/rochars/utf8-buffer-size