added code to remove <MOOS_BINARY> </MOOS_BINARY> tags from start and end of string.

Signed-off-by: Paul Newman <pnewman@robots.ox.ac.uk>