Refactoring ws error methods
Adding encoding and allowedCharset option to URLBuilder attribute. #281