Prevent labels for attribute containing spaces and invalidating HTML