Strip dashes from device ID.