Added support for RFC 3986. Fix for DIRAPI-125

git-svn-id: https://svn.apache.org/repos/asf/directory/shared/trunk@1602776 13f79535-47bb-0310-9956-ffa450edef68