Making sure it works on older systems

Also updating the debugging to be a little more useful.
Entity fix for old BS3
Fix stdout encoding