inspired by https://github.com/dankogai/js-codepoints