Fixed encoding problem for server