Man charged after going to jail -- unlawfully