Code cleaning & Base64 output