Do not copy more bytes than the filename string contains.
Merge pull request #710 from nvt/coffee-filename-fix

Coffee: Copy the correct number of bytes in filenames