sets accept-charset to '*' if not present, improves code flow