Fix miscellaneous issues handling U. F. O. metadata.

This addresses the ampersand error and the corrupted real number problem from #1539 and a crash that occurred when I was working on those.