Force attribute values to str when building XML