Fixed IOOB exception in StringUtils.getRelativePath (issue-256)