replace FileUtils.parseUrl with own implementation getParent

FileUtils.parseUrl erroneously remove the drive letter from the path on win which may result in a wrong default directory for the save as dialog.

getParent removes that error while maintaing the the same semantics as FileUtils.

There are about 20 instances in the brackets code using .lastIndexOf("/") that may potentially benefit from using the new API. I will send another pull request updating use cases where it makes sense to use the new API