Update StringCanonicalizer.java

Prevent serialization, deserialization and cloning