fixed platform dependent source encoding