Attempt to restack item after repair or recharge (Fixes #1656)
Fix not saved Attacked flag (Fixes #1657)
Exit if an unknown encoding option is specified
Remove unused implementation file
Add missing endline