change build.sh to something lighter, encode username & password 

fixing issue #2 indeed encodeURIComponent was needed, I encoded username as well for security.