fix char and unsigned-char callbacks