add html head for rendering utf-8
check that downloaded feed is not an integer, instead of just not 0, because apparently the value returned for error is not always 0