Merge 0.13 issues

There are some new characters in explain plan string which cause problems with XML writer. So, using URL encoding and decoding for the plan string.