fixed encoding problem when printing attach name