Fixed a bug introduced in rev. 1136, which caused VM to ignore the charset specification of files being attached.