Fixes issue where error pops up when sender_address has a whitespace

Just encoding the rest url fixes the issue.