Change a temporary buffer from unsigned chars to chars, avoiding a pointer-cast