Fix grep to use UTF-8, and content parsing