Convert milestone versions like 1.2-M3 to 1.2~M3 (#172)