Replace NULL at the end of each line with a constant LOCSTR_END_OF_LINE. Makes it easier to edit a dumped text file in any text editor

Add LOCSTR_END_OF_LINE to constants.rb
Change id to npc_id in TextEntry