In this call
mahonia.NewDecoder("shift-jis").ConvertString(string(s))
if string(s) contain char "", it will be converted to "¥"( full-width), which may lead to an error when creating file.
The following code can avoid this problem without changing original package
strings.Replace(mahonia.NewDecoder("shift-jis").ConvertString(string(s)), "¥", "", -1)
In this call
mahonia.NewDecoder("shift-jis").ConvertString(string(s))
if string(s) contain char "", it will be converted to "¥"( full-width), which may lead to an error when creating file.
The following code can avoid this problem without changing original package
strings.Replace(mahonia.NewDecoder("shift-jis").ConvertString(string(s)), "¥", "", -1)