Re-coded percentageEncoder method to use REGEX. Fixed bug in error reporting if fail upon requesting request token.