fixed POST encoding problem & added next() on controller::headerSent