Base64 handling security improvements
Several issues have been identified in 64 encode decode routines:
- No output buffer size checking (can lead to overflows)
- For encode routines EOS symbol was not put automatically by encode function. At some places like tpimport/export, outside EOS setting was missing. This can may lead to segmentation faults.