setup encoding in order not to be platform dependent