revert commit ec0d05a

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