EMSA encoding to match documentation