fix a potential crash when decode attachment filename fail with charset