i18n-pt_BR: synchronized with
1416b9118540
i18n-da: synchronize with
1184bb274cb3
move checkfilename from util to scmutil
checkfilename is specific to Mercurial, since it contains the knowledege
that Mercurial can't track files with \n or \r in the name.