handle special characters in java