fixes encoding issues in polite_get