Fixed PHP5.4 problem with typecasting array to string

This fixes a problem in PHP 5.4 where it refused to convert an array to a string.

I am not sure in what case `convert_simplexml_to_array` would return 2 line breaks so I hope I have interpreted this function correctly.

Best
Matt