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

Fixes issue #470
Merge pull request #471 from gpakosz/fix-metadata-crlf-bug

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