Fixed stability issues and encoding problems accross web/java