Uhm, it seems that from the 2 changes applied for previous version on 29329a251933d697bca8925ed5a8bc1242acc8fe, the getURL() => getUrl() one is not needed anymore (unless you've applied it).
But the empty check on initCharset() seems to be missing in your proposed patch.
So it requires clarification @ readme_moodle.txt about what exactly has been changed from upstream and also... add the missing empty check commented above.
I'd do it but I don't know if you've applied any other change already, sorry. Please review.