fix if launching an app from a path with strange characters in it.