We add an option param to safe_str and safe_str_client because in some case we need to use those functions before global_options is set.