Create a method in Python to encode a given string using Base64 encoding technique.
import base64

def encode_string(string):
    encoded_string = base64.b64encode(string.encode('utf-8'))
    return encoded_string