Text helper: convert_accented_characters() optimization

Thanks to static variables, array_keys() and array_values() are now executed once only.