fix: use the parameters `extensions` and `default_lang` in `of_string`