Indonesia is expected to pass a new criminal code this month that will penalise sex outside marriage.