Fix #3472: Add option to encode spaces in dropdown

Enable `encodeSpaces` option for dropDownList and listBox. Defaults to `true` which results in space character being replaced with `&nbsp;` within option prompt and option value.