Update buildHeader.R

changed base64 from RCurl to base64encode from base64enc package