Add test for FTPPath's .toURI()...

... And fix an off-by-one bug in the process!

I know I should have done that earlier.