fix encoding problem after adding spring security