remove deprecated directive classes
remove deprecated constants & methods
Do not catch Exception instead of UnsupportedEncodingException