A woman who overdosed on heroin while she was seven months pregnant has been charged with assault of an unborn child.