b64: fix segfault caused by signed char