Replace dynamic tags with their content instead of overwriting the line. Fixes #94.