fixes #1416; more consistent metatag parser code