Error checking for labels

- strntrans() during change label to ensure no tabs / newlines
small optimizations in getmapdisplay