fixed crash in ext_amsg_block (some systems cut off the \n at the end of the line)