byte[] (Path path) { if (isMountedFSPath(path)) { throw new IllegalArgumentException(path.toString()); } String jnuEncoding = System.getProperty("sun.jnu.encoding"); try { return path.toString().getBytes(jnuEncoding); } catch (UnsupportedEncodingException e) { throw new IllegalStateException("sun.jnu.encoding=" + jnuEncoding, e); } }