Fixed some general buffer overwrites, possible NULL dereferencing and one particularly volatile issue where writing a .sab with a saber whose name is too long causes nasty out of bounds memory access.