don't duplicate devicestate-to-string function (issue #5078)