Fixed encoding problem with posted data