IO-299 getPrefixLength returns null if filename has leading slashes Javadoc: add examples to show correct behaviour; add unit tests