~ fix encoding and errors output