Added extra checks in OGG encoder

See #171