Make sure file.contents is a String in filters
Documentation typo