src/string.util.js
function toUint(str) {
    const string = window.btoa(unescape(encodeURIComponent(str))),
        chars = string.split(''),
        len = chars.length,
        uintArray = [];

    Array(len).fill().forEach((val, i) => uintArray.push(chars[i].charCodeAt(0)));

    return new Uint8Array(uintArray);
}
function toUint(str) {
    const string = window.btoa(unescape(encodeURIComponent(str))),
        chars = string.split(''),
        len = chars.length,
        uintArray = [];

    Array(len).fill().forEach((val, i) => uintArray.push(chars[i].charCodeAt(0)));

    return new Uint8Array(uintArray);
}
Converts a string value to `Uint8array`
@method utilitarian.string.util#toUint
@param {string} str A string value to convert to `Uint8array`
@returns {Uint8Array} A `Uint8Array` representation of the original string