Improved conversion of Stratum messages