It was exactly what I said in my last post. I had assumed the shortname would always retain the valid extension, since this is all I'd ever seen in my testing. Your network storage device must use a different scheme for short filenames than you'd get from a file share on a windows box.
I just added some logic to convert it back to long name before looking at the extension.