Multibyte aware str_pad function
use get_enum_element where appropriate