Use URL safe Base64 encoding for user data

Older version of CloudStack may complain about non-printable ASCII
characters in user data unless URL safe Base64 encoding is used.