When receive bad file name errors print filename in error response

Related to bug 49544
Wrap in brackets to tell where the error string has been truncated

Change-Id: I50609bd2fccdefc1d3999d0aa82cbee56ec61975
Merge "When receive bad file name errors print filename in error response"