Removes invalid stuff from labels