force utf8
use uname p instead of the arch command

fix RCOUCH-21
send a doc without attachment as multipart if needded