Resolves errors concatenating non-string values in keyvaluepairs