Merge pull request #4 from hpence/develop

Unit tests for BuildDestinationUri and its sub-functions
Fixed a bug in BuildDestinationUri; it was dropping some encoded uri segments.
Upgraded the BuildDestinationUri unit tests.