more robust string handling in plugin label and display