65 . Whenever in any proceeding relating to seamen's wages it is shown that a seaman or apprentice belonging to a Ceylon ship has in the course of the voyage been convicted of an offence by a competent tribunal and rightfully punished for that offence by imprisonment or otherwise, the court hearing the case may direct any part of the wages due to such seaman or apprentice, not exceeding thirty rupees, to be applied reimbursing any costs properly incurred by the master in procuring the conviction and punishment. *Costs of procuring punishment may be deducted from wages.*