Thanks, David Wheeler! Good note, and timely. I recently delved into this topic for the tahoe system and came to a rather depressing conclusion:
"When reading in a filename, what we really want is to get the unicode of that filename without risk of corruption due to false decoding. ... Unfortunately this isn't possible except on Windows and Macintosh."