Fixed bug causing exported XML fields to become corrupt due to line breaks

Signed-off-by: Elliot Condon <e@elliotcondon.com>