api: fix rendering of filepath/string parameters