Ensure that keys passed to multipart entity are always strings.