revert commit ec0d05a

dialog variables might be binary, therefore strlen should not be used

(cherry picked from commit 7401a7a4a4820706aa05d96d5bebdc93c6db6b40)