Use Java NIO constants for charset