EOL fixes
trim tags we don't parse
undefined values
don't flood webserver log