Added unit tests for algorithm::xml_encode()

Updated ChangeLog & bumped version to 5.0.3 for RC