Similar to the standard read_to_string() But remove any existing BOM Support also input stream when filename = ‘-’