Could you add a 4th parameter instead ? e.g. `$charset, $escape = true`. This would make the code clearer :)