properly handle variable encoding of relay in version payload
properly handle variable encoding of relay in version payload