* Fix #31271 - cast all tag values as strings * Replace `str` with `to_native` (cherry picked from commit 154191f56d31e223b178d2333122894d5847db70)