Fix potential XSS in error message

Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>
Merge pull request #1699 from kenjis/fix_error

Fix potential XSS in error message