Use the platform when selecting the payload
Land #2944, add platforms to encoders

This allows encoders to advertise compatibility with a particular
platform (or more accurately, non-compatibility with everything that
isn't that platform).

See also #2939