Minor fixes in one string view

* don’t use Die to print Json::output
* don’t use $locale as a local variable name (already defined at global
scope)