Fix undefined behaviour in 128-bit integer-to-string conversion