utf8_encode(): Use int32_t in declaration

The type was already changed for the definition in d67aeb9739, but it seems like the header file was overlooked back then.
Describe this fork