Fix #1083 "xf:upload: fix support for accept vs. mediatype"

Loosely, if the user provides a space-separated value, convert it to a comma-separated value.