[COMMIT] Correct buffered_bytecount_to_charcount() on non-Mule.