extract strings from email simplates (fixes #3002)