We can (now?) use value_to_string and avoid problems with custom fields.