I'd add this to mp3tool, since I really like reading mlord's code (not kidding), but sadly I have no experience with the various codepage APIs that might be available on Linux.
If someone pointed me to some docs, I'd be happy to give it a shot.