If value is object, stringify it.