TABQA-7331 Fix path issue with weird characters in path, such as '|'

git-svn-id: http://svn.terracotta.org/svn/ehcache@8851 b9324663-ca0f-0410-8574-be9b3887307d