DERBY-4381; Connection to Derby database using jar subprotocol doesn't work if the path has round bracket in it
  backport of revision 1602054 and revision 1602232 from trunk.


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/branches/10.10@1628844 13f79535-47bb-0310-9956-ffa450edef68