Add Magic.Sprint() function.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>