Maybe use `read_whole_file_str` instead, that handles non-utf-8 better.