import shlex


def quoted_split(text, boundary):
    """Return a list of items split using the given boundary character
    forcing each item to be quoted
    """
    o = shlex.shlex(text)
    o.whitespace = boundary
    o.whitespace_split = True
    return list(o)