base 64 encode problem fixed