Minor modifications to csachs' implementation

 * Make the entry class static
 * Encode the chunk names to prevent terminal corruption
 * Log the chunks at debug
Minor fix for ND2 chunk map reading