Remove hh modifier from format strings

MinGW does not support C99's hh modifier in format strings (likely for
compatibility with Microsoft's compiler). This fix replaces the modifier
with a cast of char arguments to unsigned char to achieve the same result.