A man says he was wrongly imprisoned for being in arrears on child support for a child he believes is not his.