Changed to upload file with filename as UWTerminal does it

I like the way UWTerminal only uses the characters before the first '.' as file name when uploaded to the device, so I changed your code to do the same. If you also like it you might consider pulling the change.