Encode static parameters in native byte order rather than network order (fixes #134)