What happens if the keyword is `''`?  Those are pretty common in FITS files and probably won't round-trip.