For ACS 4, the package "ACS Localization Utils" contains similar patches to ACS to make it more "character set aware" in terms of checking the MIME type of files and trying to explicitly load and output them in the specified charset, if it exists.
These patches should probably get folded into the ACS core at some point, I just wanted to wait until there was a stable OpenACS4 release before messing with that.