Optional argument for to_base64

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>