needed to decode byte string to utf-8 before file write after the GET request