encode both str and regex to BINARY

'.' can't encode to ISO-2022-JP-2 dummy and UTF-7 dummy yet, otherwise we can convert string and regex to BINARY (ASCII-8BIT)