Further tweak to prevent encoding problems causing database write error
Further fixes to import, and new print feature