IDE and test encoding fixes