encode undefined string as <<>>