Make the state file a bit safer to use.