Introduce constants from Java NIO instead of Strings