If this is for Windows then you will want UTF-16LE
If you need to print encoded data to an output file, then by far the best way is to work with characters within your program, and set the encoding for the output handle as choroba has described
However, if you need a UTF-16-encoded string for any other reason, such as to name a file or to store in the clipboard, then you will need to do the encoding separately
The Encode
module will help you here, and this is a sample program to demonstrate. I have unpacked and the encoded string as a series of unsigned 16-bit values so that you can see that the contents match what you expect
use strict;
use warnings 'all';
use Encode qw/ encode :fallbacks /;
my $s = 'Dear User, Please enter your password to verify your mobile no.';
my $encoded = encode( 'UTF-16LE', $s, FB_CROAK);
print join ' ', map { sprintf '%04X', $_ } unpack 'S*', $encoded;
output
0044 0065 0061 0072 0020 0055 0073 0065 0072 002C 0020 0050 006C 0065 0061 0073 0065 0020 0065 006E 0074 0065 0072 0020 0079 006F 0075 0072 0020 0070 0061 0073 0073 0077 006F 0072 0064 0020 0074 006F 0020 0076 0065 0072 0069 0066 0079 0020 0079 006F 0075 0072 0020 006D 006F 0062 0069 006C 0065 0020 006E 006F 002E