Take CR/LF into account when separating content from YAML metadata

Fixes issue #470