Comment 14 for bug 120542

It handles case and also makes sure to return the file as UTF-8 NFD (as they are stored on disk), according to my testing. I don't really know how to access it from python though, but I guess some of you guys do (os.path.realpath does not use this function).