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.

I still find it funny that whoever wrote this decided that the best way to deal with non-integers was to pretend that they were rather than outputting them correctly.