Modified output of userdata generation so that it could be passed into a
variable.
Modified Get-CloudStackUserData to return userdata string.
Fixed text encoding issue when encoding userdata.