Black hole entropy from classical Liouville theory