custom encoding for data time and map components