Correctly handle unicode in sandbox logging resource.